package com.wang.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Classname Cart
 * @Description TODO
 * @Date 2024/9/12 14:02
 * @Created by pc
 */
@Data
@ToString
@NoArgsConstructor
@AllArgsConstructor
@ApiModel
public class Cart implements Serializable {
    @ApiModelProperty("购物车id")
    private Integer id;
    @ApiModelProperty("用户id")
    private Integer userId;
    @ApiModelProperty("商品id")
    private Integer productId;//'商品id',
    @ApiModelProperty("数量")
    private Integer quantity;//'数量',
    @ApiModelProperty("是否选择 1=已勾选,0=未勾选")
    private Integer checked;// '是否选择,1=已勾选,0=未勾选',
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty("创建时间")
    private Date createTime;// '创建时间',
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty("最后一次更新时间")
    private Date updateTime;//'最后一次更新时间',

}
